<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>志愿一点通</title>
    <link href="${ctxStatic}/bootstrap/3.3.2/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="${ctxStatic}/app/css/master.css">
</head>
<body class="ashenbg">
<nav class="topbar bluebg">
    <a class="icon-arrow icon-return" href="javascript:history.go(-1);"></a>
    <h1>专业详情</h1>
</nav>
<div class="wrap">
    <div class="school-brief fffbg">
        <h3 class="orange">${majorInfo.majorName}</h3>
        <div class="school-data">
            <p class="p1">专业代码：<span>${majorInfo.majorCode}</span></p>
            <p class="p1">修学年限：<span>${fns:getDictLabel(majorInfo.studyLife,'study_life','四年')}</span></p>
            <p class="p1">授予学位：<span>${fns:getDictLabel(majorInfo.awardDegree,'award_degree','学士学位')}</span></p>
            <c:choose>
                <c:when test="${not empty lqMajorList}">
                    <div class="school-para">
                        <table class="table">
                            <thead>
                            <tr style="color: #ff0000;">
                                <th>
                                    <c:choose>
                                        <c:when test="${userMain.kmType eq '5'}">理科专业录取分数</c:when>
                                        <c:otherwise>文科专业录取分数</c:otherwise>
                                    </c:choose>
                                </th>
                                <th colspan="3">以下显示分数为平均同位分</th>
                            </tr>
                            <tr>
                                <th>院校名称</th>
                                <th>${maxYear}</th>
                                <th>${maxYear-1}</th>
                                <th>${maxYear-2}</th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${lqMajorList}" var="item">
                                <tr>
                                    <td>${item.schoolName}</td>
                                    <td>
                                        <c:choose>
                                            <c:when test="${not empty item.firAvg}">${item.firAvg}</c:when>
                                            <c:otherwise>-</c:otherwise>
                                        </c:choose>
                                    </td>
                                    <td>
                                        <c:choose>
                                            <c:when test="${not empty item.secAvg}">${item.secAvg}</c:when>
                                            <c:otherwise>-</c:otherwise>
                                        </c:choose>
                                    </td>
                                    <td>
                                        <c:choose>
                                            <c:when test="${not empty item.thirdAvg}">${item.thirdAvg}</c:when>
                                            <c:otherwise>-</c:otherwise>
                                        </c:choose>
                                    </td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                    </div>
                </c:when>
            </c:choose>
        </div>
    </div>
</div>
<div class="interactbox">
    <div class="favbtn flt">
        <c:if test="${isFav eq true}">
            <span class="icon-starcheck" onclick="favoriteMajor('major','','','','${majorInfo.majorCode}',this);"></span><br>
        </c:if>
        <c:if test="${isFav eq false}">
            <span class="icon-star" onclick="favoriteMajor('major','','','','${majorInfo.majorCode}',this);"></span><br>
        </c:if>
        <span>取消</span>
    </div>
    <div class="sharebtn frt">
        <span class="icon-share" onclick="javascript:alert('点击右上角可以分享');"></span><br>
        <span>分享</span>
    </div>
</div>
<script src="${ctxStatic}/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/bootstrap/3.3.2/js/bootstrap.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/app/js/main.js" type="text/javascript"></script>
</body>
</html>